package com.aq.appserver.server.theme.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.aq.appserver.server.account.entity.HeadImg;
import com.aq.appserver.server.theme.bean.CommentBeanWeb;
import com.aq.appserver.server.theme.bean.ThemeBeanWeb;
import com.aq.appserver.server.theme.entity.Comment;
import com.aq.appserver.server.theme.entity.Theme;

public interface ThemeService {

	public void toTopWebTheme(ThemeBeanWeb theme);
	
	public void cancerTopWebTheme(ThemeBeanWeb theme);
	
	public String saveTheme(Theme theme);

	public List<ThemeBeanWeb> queryWebTheme(ThemeBeanWeb theme);
	
	public int queryWebThemeCount(ThemeBeanWeb theme);
	
	public List<CommentBeanWeb> queryWebComment(CommentBeanWeb comment);
	
	public void deleteWebTheme(ThemeBeanWeb theme);
	
	public void deleteWebComment(CommentBeanWeb theme);
	
	public void saveContent(Comment content);

	public void updateClickNum(String themeId);

	public Page<Theme> queryThemeList(String searchContent, Pageable pageable);

	public Page<Theme> queryThemeListByPhoneNum(String phoneNum,
			String searchContent, Pageable pageable);

	public Page<Theme> queryThemeList(Pageable pageable);

	public Page<Theme> queryThemeListByPhoneNum(String phoneNum,
			Pageable pageable);

	public int getReplyNum(String id);

	public int getMyHelpCount(String phoneNumber);

	public int getMyReplyCount(String phoneNumber);

	public List<HeadImg> queryHeadImgByPhoneNum(String phoneNum);

	public Page<Comment> findByThemeId(String themeId, Pageable pageable);

	public int queryTopNum();

	public Iterable<Theme> queryWebThemeList();
}
